const webpack = require('webpack')
module.exports = {
    assetsDir:'static',
    parallel:false,
    publicPath:'./',
    devServer: {
        proxy: {
            '/api': {
                // target:'http://192.168.2.212:8088',
                // target:'http://192.168.2.103:8088',
                // target:'http://192.168.2.205:8088',
                // target:'http://192.168.101.3:8088',
                // 叶博
                // target:'http://192.168.50.162:8080',
                // 刘青长
                // target:'http://192.168.50.176:8080',
                // 肖建
                target:'http://192.168.50.128:8080',
                // 刘盛麟
                //target:'http://192.168.50.153:8080',
                // target:'https://60j083o206.goho.co',
                changeOrigin: true,
                ws:true,
                pathRewrite:{
                    '^/api': ''
                }
            }
        }
    },
    chainWebpack: config => {
        config.plugin('provide').use(webpack.ProvidePlugin, [{
          $: 'jquery',
          jquery: 'jquery',
          jQuery: 'jquery',
          'window.jQuery': 'jquery'
        }])
    }
}
